Skip to content

Fix #14 + #15 - Validators::is() with pipe#31

Closed
Majkl578 wants to merge 2 commits into
nette:masterfrom
Majkl578:fix/GH-14-validators-is-with-pipe
Closed

Fix #14 + #15 - Validators::is() with pipe#31
Majkl578 wants to merge 2 commits into
nette:masterfrom
Majkl578:fix/GH-14-validators-is-with-pipe

Conversation

@Majkl578
Copy link
Copy Markdown
Contributor

Possible fix for #14 & #15.

@Majkl578
Copy link
Copy Markdown
Contributor Author

Note that this would still fail for a case like this:

pattern:john (doe|bool)

But the chance is 1000x lower. No better idea about some generic solution without BC breaks.

@Majkl578 Majkl578 changed the title Fix #14 - Validators::is() with pipe Fix #14 + #15 - Validators::is() with pipe Sep 23, 2014
@xantin
Copy link
Copy Markdown

xantin commented Sep 24, 2014

what about this syntax pattern:(john (doe|bool)) that shoul worked, yes?

@dg
Copy link
Copy Markdown
Member

dg commented Sep 24, 2014

This is not deterministic 👎

@Majkl578
Copy link
Copy Markdown
Contributor Author

Yup, any better solution without BC breaks?

@dg
Copy link
Copy Markdown
Member

dg commented Sep 24, 2014

  • support | only inside braces and create recursive pattern
  • somehow escape | in pattern
  • won't fix

@dg dg force-pushed the master branch 2 times, most recently from 5617d88 to 209844d Compare May 21, 2015 11:51
@dg dg force-pushed the master branch 2 times, most recently from 5ed86bc to 509ef5e Compare June 19, 2015 12:53
@dg dg force-pushed the master branch 13 times, most recently from 6c03b1f to a4bddc8 Compare September 9, 2015 07:16
@dg dg force-pushed the master branch 3 times, most recently from 2998062 to f6303c6 Compare September 28, 2015 14:20
@dg
Copy link
Copy Markdown
Member

dg commented Apr 1, 2016

Won't fix is IMHO the best solution, thanks anyway for PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants